package com.note7_5;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;

public class byte_change {

	public static void main(String[] args) {
		InputStream is = null;
		try {
			is = new FileInputStream("C:\\Users\\60973\\Desktop\\小图标\\android\\图片素材\\小图标\\0.png");
			byte[] b = new byte[8];
			int a = is.read(b);
			for(int i = 0; i < 8;i++){
				String temp = Integer.toHexString(b[i] & 0xFF);
				System.out.println(temp);
			}
		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}finally{
			try {
				is.close();
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
	}
}
